package com.zpp.wedding_admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zpp.wedding_admin.entity.Join;
import com.zpp.wedding_admin.mapper.JoinMapper;
import com.zpp.wedding_admin.service.IJoinService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JoinServiceImpl extends ServiceImpl<JoinMapper, Join> implements IJoinService {

    @Autowired
    private JoinMapper joinMapper;

    @Override
    public List<Join> getJoin(String id) {
        return null;
    }

    @Override
    public boolean joinAdd(Integer activityId, Integer userId) {
        return joinMapper.joinAdd(activityId, userId);
    }

    @Override
    public List<Join> getActivityById(Integer id) {
        return joinMapper.getActivityById(id);
    }

    @Override
    public List<Join> getAllUser(Integer id) {
        return joinMapper.getAllUser(id);
    }
}
